pub(crate) struct LError {
    code: i32,
    msg: &'static str,
}

impl LError {
    pub(crate) fn new(code: i32,
                      msg: &'static str) -> Self {
        LError {
            code,
            msg,
        }
    }

    pub(crate) fn code(&self) -> i32 {
        return self.code;
    }

    pub(crate) fn msg(&self) -> &str {
        return self.msg;
    }
}



// pub(crate) const KEY_LEN_ERR: LError = LError::new(0xEE001, "加密的key值不正确。");













